import * as type from "./type"


let actions = {
    [type.INCREMENTSHOPCART]({commit,rootState},payload){ 
  
        let action = {
            type: type.INCREMENTSHOPCART,
            payload: payload
        }
        commit(action); 
    },
    [type.udpateGoods]({commit,rootState},payload){ 
  
        let action = {
            type: type.udpateGoods,
            payload: payload
        }
        commit(action); 
    },
    [type.delGoods]({commit,rootState},payload){ 
  
        let action = {
            type: type.delGoods,
            payload: payload
        }
        commit(action); 
    }

}

export default actions;
